-
Notifications
You must be signed in to change notification settings - Fork 9
Added redraw
re-export from the highlightRenderer
#104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added redraw
re-export from the highlightRenderer
#104
Conversation
# Conflicts: # packages/text-annotator/src/TextAnnotator.ts
Hello, @rsimon 👋🏻 const handleScroll = () => {
r.state.store.recalculatePositions();
r.redraw(true);
}; Would it be possible to make this change a merge candidate? |
cc @rsimon, this change seems like another merge candidate for the next release 🙏🏻 |
setSelected, | ||
setPresenceProvider, | ||
setVisible, | ||
setVisible: highlightRenderer.setVisible.bind(highlightRenderer), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the binding actually necessary, given that the highlightRenderer is a function (and doesn't use this
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's an easy way to prevent setting a footgun. As one day we might wanna access this
, and it would be great to have it properly populated.
I've just been bitten by a missing context issue too many times 😅
Issue - #103
Changes Made
redraw
method to theTextAnnotator
definitionhighlightRenderer
methods(Soomo Staged, 09.09.25)